package band.wukong.practice.javase.core.thread.basic;

/**
 * 创建线程并启动
 *
 * @author wukong(wukonggg@139.com)
 * Date: 2009-11-5 9:31:25
 */
public class Demo01 extends Thread {

    public void run() {
        for (int a = 0; a < 50; a++) {
            System.out.println(a);
        }
    }

    public static void main(String[] args) {
        Demo01 machine = new Demo01();  //创建Demo01对象
        machine.start();    //启动线程
    }
}
